--- import Layout from '../layouts/Layout.astro'; import medias from '../data.json'; import Header from '../components/header.astro'; export const getStaticPaths = async () => { return medias.map((media) => { return { params: { index: media.index.toString() }, props: { media, }, }; }); }; const { media } = Astro.props; ---
← Index

{media.data}

{media.location}

{media.name}

{`Image